<div class="row clearfix">
        <div class="col-md-12 column">
                <div class="row clearfix">
                    <div class="col-md-12 column">
                        <h3>Esošie filmu žanri</h3>
                        <table>
                            <tr>
                                <th>Filmu žanri</th>
                                <th>Movie genres</th>
                                <th></th>
                            </tr>

                            <?php  
                                foreach($genres as $genre) {
                                    echo    Form::open(array('action' => 'genre/edit', 'id' => 'genreForm')) .
                                            '<tr>' . 
                                            '<td>' . Form::input('Genre_Lv', $genre->genre_lv, array("class"=>"form-control") ) . Form::hidden('Genre_ID', $genre->id, array()) . '</td>' .
                                            '<td>' . Form::input('Genre_En', $genre->genre_en, array("class"=>"form-control") ) . '</td>' .
                                            '<td>' . 
                                                Form::submit('SubmitButton', 'Labot', array("class"=>"btn btn-default") ) .
                                                Html::anchor('/genre/delete/'.$genre->id, 'Dzēst', array('class' => 'btn btn-default', "onclick" => "return confirm('Vai tiešām dzēst šo žanru?');")) .
                                            '</td>' .
                                            '</tr>' .
                                            Form::close();
                                }
                            ?>   
                        </table>

                        <?php echo Form::close(); ?>   
                    </div>
                </div>
                <div class="row clearfix">
                        <div class="col-md-4 column">
                            <?php echo Form::open(array('action' => 'genre/new', 'id' => 'genreFormNew')); ?>
                            <h3>Pievienot jaunu žanru</h3>
                            <div class="form-group">
                                    <label for="Genre_Lv">Žanra nosaukums latviski<span style="color:red">*</span></label><?php echo Form::input('Genre_Lv', '', array("class"=>"form-control") ); ?>                        
                            </div>
                            <div class="form-group">
                                    <label for="Genre_En">Žanra nosaukums angliski<span style="color:red">*</span></label><?php echo Form::input('Genre_En', '', array("class"=>"form-control") ); ?>                        
                            </div>
                            <?php echo Form::submit('SubmitButton', 'Pievienot jaunu žanru', array("class"=>"btn btn-default") ); ?> 
                            <?php echo Form::close(); ?>
                        </div>
                </div>
        </div>
</div>
